package pattern.cor.handler;

/**
 * Created by boot on 8/30/15.
 */
public class CEOHandler extends PriceHanlder {
    @Override
    public void processDiscount(float discount) {
        if (discount <= 0.45) {
            System.out.format("%s批准了折扣:%.2f%n", this.getClass().getName(), discount);
        } else {
            System.out.format("%s拒绝了折扣:%.2f%n", this.getClass().getName(), discount);
        }

    }
}
